<?php
require('config.php');

		$sql="select * from `".$oto."_article_cats` where `parentId`='0' and catFlag='1' and isShow='1'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($person_info);
?>